from django.contrib import admin
from django.contrib.auth.admin import UserAdmin

# from .models import CustomUser
# from .forms import CustomUserCreationForm, CustomUserChangeForm


# class CustomUserAdmin(UserAdmin):
#     form = CustomUserChangeForm
#     add_form = CustomUserCreationForm
#     model = CustomUser
#     list_display = ['username', 'name', ]
#     fieldsets = (
#         ('Primary info', {'fields': ('username', 'password')}),
#         ('Personal info', {'fields': ('name', 'groups',)}),
#         ('Permissions', {'fields': ('is_superuser', 'is_active')}),
#     )
#     add_fieldsets = (
#         ('Add user', {
#             'classes': ('wide',),
#             'fields': ('username', 'name', 'password1', 'password2',)}
#          ),
#     )
#
#
# admin.site.register(CustomUser, CustomUserAdmin)
